package com.xbongbong.pro.businesstage.pojo.dto;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.xbongbong.paas.domain.entity.ext.PaasAttachmentEntityExt;
import com.xbongbong.pro.weblist.pojo.dto.SaasBaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Auther: yingjianfeng
 * @Date: 2021/11/25 18:36
 * @Description:
 */
@Getter
@Setter
@ToString
public class StageExecutionEventSaveDTO extends SaasBaseDTO {
    /**
     * 业务类型
     */
//    @NotNull(message = "{dto.msg.businessData.businessType.NotNull}")
    private Integer businessType;
    /**
     * 数据id
     */
    @NotNull(message = "数据id不能为空")
    private Long dataId;
    /**
     * saas标记
     */
    @NotNull(message = "{dto.msg.businessData.saasMark.NotNull}")
    private Integer saasMark;
    /**
     * 阶段记录id
     */
    @NotNull(message = "阶段记录id不能为空")
    private Long stageLogId;
    /**
     * 工作id
     */
    @NotNull(message = "阶段任务id不能为空")
    private Long stageWorkId;
    /**
     *  1. 无事件。2.上传图片。3.上传附件。4.字段编辑。5.编辑关联数据
     */
    private Integer executionEventType;
    /**
     * 执行事件名
     */
    private String executionEventName;
    /**
     * 图片
     */
    private JSONArray images;
    /**
     * 附件
     */
    private List<PaasAttachmentEntityExt> attachments;

    /**
     * 应用id
     */
    private Long appId;
    /**
     * 菜单
     */
    private Long menuId;
    /**
     * 更新数据
     */
    private JSONObject dataList;
}
